package de.tum.in.eist.poll.client;
import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;

import de.tum.in.eist.poll.shared.Poll;
import de.tum.in.eist.poll.shared.Result;
import de.tum.in.eist.poll.shared.Student;

public interface PollServiceAsync {
	void submitPoll(Result r, Student u, AsyncCallback<Void> callback);

	void getPolls(AsyncCallback<List<Poll>> callback);

	void getClosedPolls(AsyncCallback<List<Poll>> callback);

	void getOpenPolls(AsyncCallback<List<Poll>> callback);
}
